home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
comm
/
cnet
/
comparebbstext.lha
/
CompareBBSText.README!
< prev
next >
Wrap
Text File
|
1997-03-22
|
12KB
|
228 lines
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Compare BBSTexts, v1.00 (22-Mar-97) by Dotoran!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Well, I decided to finish off this little utility. I had been using it
over here for ages, and had even passed out numerous early versions, however
this is the first PUBLIC release, with all the features missing in the past
releases.
What's It Do?
~~~~~~~~~~~~~
Basically, this is a file you'd run shortly after you upgraded to a NEW
version of CNet Amiga. This file has the ability of comparing the OLD and
NEW stock versions of the "bbstext" file and showing you the differences.
Beyond this simple premise, your current MODIFIED version bbstext file
is also read in during the comparison. When the file finds a difference, it
will show you the line in question as it appears in ALL THREE FILES.
You then have the ability of choosing from either the OLD, NEW, or your
MODified version line, as to which will be written to the FOURTH file, which
I refer to as the CONversion file.
Additionally, this release version has the ability of going one step
further, that being the ability to EDIT one of the given lines BEFORE you
write it to the CONversion file. This comes in extremely handy when you see
a new line that has changed format, then also notice that it was a line you
had previously customized(perhaps in color or formatting of your own). You
could then choose to EDIT the NEW line, adding in whatever formatting you
thought appropriate. When finished, you'll be shown the edited line and will
be asked if it's OK to save the edited line. If you state NO, you'll be shown
the same three lines and will be able to proceed along a different path if
you so wish it.
Once the conversion is completed, the file will ask if you wish your
existing bbstext file to be renamed(as it's assumed you called it bbstext).
If you DO rename it, you'll additionally be asked if you wish the CONverted
version file to be renamed to become the new "bbstext" file. Finally, if it's
seen that your MODified version file existed in your CNET: path, you'll be
asked if you wish the file to automatically reload the bbstext file for you.
OK, So How Do I Install It?
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Installation is a breeze:
1. Copy the file somewhere onto your system. I suggest somewhere in your
DOORS: path.
2. Add the file into your pfiles/doors listing of Maintenance Programs as
an ARexx file for use by SysOps only.
3. I also added the following line to my Maintenance Menu (Menu # 1) in my
cnet:bbsmenu file:
COMPare | {<path>CompareBBSText}
|~~~|~~
Control-Q <----' `----> The path you stored the file in Step # 1.
4. That's it!
Wow, Easy, But How About Using It?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using the file isn't that complicated either. Before you start with this
file, you may wish to modify several SysOp Definable Variables that exist at
the start of the main "CompareBBSText" file. Here they are again, with some
slightly expanded descriptions:
The first four variables list the DEFAULT <path>/filename values that
will be used by the program when it initially asks you about the files to
compare. You'll be able to further modify the contents of ANY of these once
you've entered the file.
oldfile="cnet:bbstext."
The "oldfile" variable should state the location of your PREVIOUS stock
version "bbstext" file. Because you are using this file shortly after you
UPGRADED a CNet version, you should still have a copy of this file. Over at
this end, I have a tendency to rename my older stock files using a format of
"bbstext.<VERSION>", so I have files like "bbstext.425a", "bbstext.426", etc.
The default given above is simply supplying me with the STEM of the name I'd
need to actually type. Actually, the way I have things set up over here, this
is the ONLY variable I need to modify once entering this file.
newfile="cnet:!bbstext_stock"
The "newfile" variable should state the location of your NEWEST stock
version "bbstext" file. Ray has been using a format of "!bbstext_stock" for
naming the newest version bbstext in his archives, so by simply copying that
file into your CNET: path, you'll be all set for this variable, however if
you opt to call it something else, you'll have the ability to change it once
you're inside the program.
modfile="cnet:bbstext"
The "modfile" variable should state the location of your CURRENT MODIFIED
version "bbstext" file. In other words, the file you've added color or other
formatting to. Being as it's assumed you are currently USING this file online,
this variable defaults to pointing at the "bbstext" file in your CNET: path.
Again, you should be set with this variable, but change it if needed.
confile="cnet:bbstext.con"
The "confile" variable should state the location of the CONVERTED version
bbstext file, and although you really don't need to worry about this name, I
gave you the ability to modify it in the event you already have a file named
"bbstext.con" on your system. The program has the ability of RENAMING this
file to BECOME your new "bbstext" file during it's conclusion, so it's very
possible, you'll never actually SEE this file lying around! ;-)
logging=2
Another feature I decided to add while I was at it was some basic LOGGING,
so that you'll have some kind of idea as to WHAT this file did. You can set
the "logging" variable to "0" to disable logging totally, or else specify a
"1" to list just the line numbers that changed, or a "2" to be shown the line
number, how that line looks in all three files, as well as which line you
chose to store in your converted file. (If you opted to EDIT a line before
writing, you'll also be shown this edited line).
logfile="SysData:Log/BBSTextDiff"
The "logfile" simply allows you to specify what you'd like to call the
log. Using the new "RL BBSTextDiff" command will allow you to view this log
online. (Embedded MCI codes have been rendered harmless in the log).
Llength=0
This last variable, "Llength", allows you to specify the LONGEST line
you have in your bbstext file(your modified one, not one of the stock ones).
ARexx has problems reading lines with lengths over 1000 characters, so this
variable allows you to specify if you fit into that category or not. The main
reason this variable exists is because the PERFORMANCE of this file decreases
if it has to look for longer lines in the file, so unless you HAVE to, I'd
suggest leaving this set to "0" if you're fairly sure all your lines have
lengths UNDER 1000 characters. Use the "1" setting if you have lines between
1000 and 2000 characters, and the "2" setting if you have lines OVER 2000
characters long.
I'm Ready to Launch CompareBBSText!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alright, once the above variables have been set to suit, SAVE the file,
then make sure your text files are in place. Log on to your bbs and type
COMP from any command prompt. If not already in Full Interlaced mode, you'll
be asked to change your settings, as the display could become corrupted if
you have LONG lines in your bbstext file. Whether you opt to run in a Non-
Interlaced mode or not is purely up to you. Press any key to continue...
You'll then be asked for the paths and filenames for the four files
mentioned above. Once specified, all four files will be OPENED (the OLD, NEW,
and MOD files in READ mode, and the CON file in WRITE mode). The LOG file
will also be opened in WRITE mode, provided logging is enabled.
Lines will be read from all three files and providing the OLD line is
equal to the NEW line, the same line from your MOD file will be written to
the CON file. If the OLD and NEW lines DIFFER, however, you'll be shown ALL
THREE lines, then be asked if you wish to EDIT, or write one of these lines.
If you specify to WRITE a line, the appropriate line will be written to the
MOD file and the reading will continue. If you press "E" to edit, you'll be
asked WHICH line you'd like to edit, upon which you'll be taken into the
CNet Visual Editor for editing.
Even though a line may exceed 80 characters in length, you can still
EDIT the contents of the line in CNet's editor. When you opt to SAVE the
line, each individual line will be combined with the previous line, until
all lines have been read. Any TRAILING SPACES in the FINAL line will be
STRIPPED. You'll be SHOWN this edited line on screen and will be asked if
it's OK to write that line to the CON file.
If you ABORT the editor, attempt to SAVE the editor with NO characters
in it, or specify you do NOT wish to write the edited line, the file will
BACK UP one line and you'll be shown the same line again, with options to
either EDIT or WRITE one of the existing lines.
There is NO WAY to CANCEL or ABORT the compare process once it has been
started, however if you need to cancel the file, you can issue the HI command
from within a CLI-Shell window(although, keep in mind that this HI command
will also CANCEL ALL OTHER RUNNING AREXX tasks). It is HIGHLY advisable that
you do NOT cancel this file anyways, which is why I purposefully did NOT
include a way to do it easily, so "buck up" and take the time to do it right!
A recent release of a similar program also included an option to FINISH
the process automatically, which simply wrote the remaining lines from the
NEW file to the END of the CON file and completed the process. Again, being
as this file is supposed to be an EASY way of making the translation to the
new version of CNet, why on Earth would you want to START the conversion
process, only to say blindly you wished to throw away the remainder of the
changes you made. Seems a bit silly to me. ;-)
Being as the possibility exists that the NEW file will contain ADDITIONAL
lines that were not present in your OLD or MOD files, when these lines are
encountered, you'll be shown them on the screen the same as with the other
noted differences, however in these instances, it will appear that the OLD
and MOD lines are MISSING(well, in actuality, they ARE!). You should write
the NEW line in these instances, to insure that the NEW lines get appended
to your CONversion file, or you could opt to EDIT the NEW line and add in
any coloring or other formatting you may be using to "once and for all" put
the finishing touches on these lines.
When the file has completed it's comparison and creation of the CONversion
file, you'll be asked if you wish your specified MOD file to be renamed using
a ".old" extension. If you state YES, you'll then additionally be asked if
you'd like the newly created CON file to be renamed using the MOD filename.
Provided your MOD file exists in the CNET: directory, and you specified
above to rename the CON file to BECOME the new MOD file, you'll be asked one
last question asking if you'd like to automatically reload the bbstext file.
At the completion of the entire process, the log file will be closed(if
set to be logged). You can view this log file by typing "RL <logfile>", where
<logfile> is the NAME of the file you specified in the "logfile" variable.
Provided this file exists in the "SysData:Log/" directory, you do NOT need to
specify the PATH in the RL command, so "RL BBSTextDiff" would work perfectly!
Some Closing Comments
~~~~~~~~~~~~~~~~~~~~~
And THAT, my friends, is the end of THAT! ;-) I know I may have been a
bit "winded" in the above explanations, but it's AMAZING how many SysOps are
out there that never HEARD of such a file, or WHY it would/should be used,
so hopefully, the above served to be an education for the NEW! hehe
Now, I suppose, I should finish my "CompareBBSMenu" file... :sigh: hehe
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
...your fingers deceive you, as you begin typing the url...
http://www.bluemoon.net/~dotoran
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-